<?php

namespace App\Console\Commands;

use App\Lib\ConsumerActivity;
use App\Lib\ConsumerMoonGift;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Log;
use App\Http\Controllers\DiamondController;

class ConsumerMoonActivity extends Command
{

    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'mq:consumer:moon:activity';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = '队列消费';

    public function __construct()
    {
        parent::__construct();
    }

    public function handle()
    {
        try {
            $consumer = new ConsumerActivity();
            $ret = $consumer->consumer();
            // Log::info(json_encode($ret, JSON_UNESCAPED_UNICODE));
        } catch (\Exception $e) {
            Log::error($e->getMessage());
        }
    }
}